﻿<taskDefinition xmlns="http://schemas.microsoft.com/iis/media/v4/TM/TaskDefinition#">
  <name>Create Windows Azure Media Services Asset</name>
  <id>92c19155-c012-478d-bf61-47c937616b2a</id>
  <description xml:lang="en">Uses the input file(s) to create an Asset in Windows Azure Media Services.  Creates a Locator from which to stream the Asset. Outputs an assetInfo.json with the Asset Id to find it in WAMS, the GUID used as an AlternateId, and a URL to stream it.</description>
  <inputDirectory></inputDirectory>
  <properties namespace="http://schemas.microsoft.com/iis/media/CreateAsset#" prefix="createAsset">
    
    <property name="alternateId" required="true" value="[UseJobInstanceId]" helpText="If you are using a Content Management System to run your jobs, set the CMS GUID for this asset.  Set to [UseJobInstanceId] to use the TM job instance information (DateTime_GUID) as the Asset.AlternateId in WAMS."/>

    <property name="accessPolicyDurationInDays" required="true" value="365.0" helpText="Set to zero if you don't want a Locator.  When creating an Access Policy for your Locator, you must set the duration for this policy.  After that date, the Policy will expire and your asset will no longer be streamable."/>
    <property name="locatorStartTimeInMinutes" required="true" value="-5" helpText="Set to -5 to make the locator available immediately, the negative value avoids clock skew between your machine and Microsoft servers.  You can also set this in the future, if you want to only strart streaming at a later date." />
    <property name="primaryFileMask" required="true" value="[UseInstanceFile]" helpText="Set to [UseInstanceFile] to use the file which triggered the watch folder as the primary file for the Asset.  Otherwise set to *.ism or yourfile.smil"/>

    <property name="wamsAccountName" required="true" value="EnterYourAccoutName" helpText="Windows Azure Media Services account name."/>
    <property name="wamsAccountKey" required="true" value="EnterYourAccoutKey"  helpText="Windows Azure Media Services account key." />
    <property name="apiServer" required="false" value="" helpText="Only needed for partner or debug deployments." />"
    <property name="scope" required="false" value="" helpText="Only needed for partner or debug deployments." />"
    <property name="acsBaseAddress" required="false" value="" helpText="Only needed for partner or debug deployments." />"

  </properties>
  <taskCode>
    <type>Codeplex.TransformManager.WAMS.CreateAssetTask, Codeplex.TransformManager.WAMS.CreateAssetTask, Version=1.0.1.0, Culture=neutral</type>
  </taskCode>
</taskDefinition>


